body.g-dark {
  background-color: var(--background);
  .g-light-only {
    display: none;
  }
}

body:not(.g-dark) {
  background-color: var(--background);
  .g-dark-only {
    display: none;
  }
}

.g-container {
  padding: var(--space-common);
}

.g-child-mt {
  & > *:not(:first-child) {
    margin-top: var(--space-common-sm);
  }
}

.g-flex {
  display: flex;

  & > * {
    align-self: center;
  }
}

.g-clear-input {
  box-sizing: border-box;
  border: none;
  text-shadow: none;
  -webkit-appearance: none;
  -webkit-user-select: text;
  outline: none;
  box-shadow: none;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none;
  margin: 0; 
}
input[type=number] {
  -moz-appearance:textfield;
}

.g-fade-enter-active,
.g-fade-leave-active {
  transition: all 0.5s;
}

.g-fade-enter,
.g-fade-leave-active {
  opacity: 0;
}

.g-box {
  width: 1500px;
  margin: 0 auto;
}

.g-font-thin {
  font-family: "Roboto Thin";
}

.g-font-regular {
  font-family: "Roboto Regular";
}

.g-font-mid {
  font-family: "Roboto Medium";
}

.g-font-bold {
  font-family: "Roboto Bold";
}

.g-font-black {
  font-family: "Roboto Black";
}

.g-container {
  width: 1500px;
  margin: 0 auto;
  padding: 0 20px;

  @media (max-width: 1680px) {
    max-width: 1080px;
  }

  @media (max-width: 750px) {
    max-width: initial;
    padding: 0 0.5rem;
  }
}

.g-table--empty {
  margin-bottom: 200px;

  tr:hover {
    background: none !important;
  }
}

.g-table--empty__wrapper {
  padding-top: 40px;
  padding-bottom: 20px;
  text-align: center;
}

.g-table--empty__wrapper__label {
  margin-top: 10px;
  font-size: 13px;
  font-family: "Roboto Medium";
  font-weight: 400;
  color: var(--color-des);
  line-height: 20px;
}

.g-table {
  min-width: 100%;
  border-collapse: collapse;

  &.g-table--hover {
    tbody {
      tr {
        cursor: pointer;

        &:hover {
          background: var(--background-table-hover);
        }
      }
    }
  }

  &.g-table--no-padding {
    th,
    td {
      &:first-child {
        padding-left: 0;
      }

      &:last-child {
        padding-right: 0;
      }
    }
  }

  &.g-table--left {
    th,
    td {
      text-align: left;

      &:last-child {
        text-align: right;
      }
    }
  }

  th,
  td {
    padding: 10px 10px 10px 0;
    text-align: right;
    white-space: nowrap;

    &:first-child {
      text-align: left;
      padding-left: var(--space);
    }

    &:last-child {
      padding-right: var(--space);
    }
  }

  th {
    font-size: 12px;
    line-height: 21px;
    font-family: "Roboto Regular";
    color: var(--color-des);
  }

  td {
    font-size: 14px;
    line-height: 21px;
    font-family: "Roboto Medium";
    color: var(--color);
    a {
      color: var(--color);
    }
  }
}

.g-clickable {
  transition: 0.2s;
  cursor: pointer;
  user-select: none;
  &:active {
    opacity: 0.8;
    transform: scale(0.9);
  }
}

.g-clickable-small {
  transition: transform 0.2s;
  cursor: pointer;

  &:active {
    opacity: 0.8;
    transform: scale(0.95);
  }
}

.g-button-gradient {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  background-image: linear-gradient(var(--background), var(--background)),
    linear-gradient(
      90deg,
      #553b7c 0%,
      #795dc6 91.89%
    );

  padding: 2px;
  background-clip: content-box, padding-box;
  transition: all 0.3s ease;
  &:hover {
    background-image: linear-gradient(var(--background), var(--background)),
      linear-gradient(
        90deg,
        #553b7c 0%,
        #795dc6 91.89%
      );
  }
}

.g-card-button-gradient {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  border: 2px solid var(--border-color);
  transition: all 0.5s ease;
  box-sizing: border-box;
  &:hover {
    border-color: var(--border-hover-color);
    // border-color: transparent;
    // background-image: linear-gradient(var(--card), var(--card)),
    //   linear-gradient(
    //     90deg,
    //     #fe719a 0%,
    //     #d386ff 15.15%,
    //     #6dc2ff 71.46%,
    //     #43e2d4 91.89%
    //   );
    // padding: 3px;
    // background-clip: content-box, padding-box;
  }
}

.g-dialog-panel {
  background-color: var(--card);
  border-radius: 20px;
  padding: 30px;
  width: 400px;
  box-sizing: border-box;
}

.g-dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;

  span {
    font-size: 22px;
    font-family: "Roboto Black";
  }

  .close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: -5px;

    i {
      font-size: 32px;
    }
  }
}

.g-card-title {
  font-size: 14px;
  font-family: "Roboto Regular";
  color: var(--color-content);
}

.g-scrollbar {
  &::-webkit-scrollbar {
    width: 4px;
    height: 4px;
    border-radius: 2px;
  }

  &::-webkit-scrollbar-track-piece {
    background-color: transparent;
    -webkit-border-radius: 2px;
  }

  &::-webkit-scrollbar-thumb:vertical {
    height: 4px;
    background-color: var(--scroll);
    -webkit-border-radius: 2px;
  }

  &::-webkit-scrollbar-thumb:horizontal {
    width: 4px;
    background-color: var(--scroll);
    -webkit-border-radius: 2px;
  }
}

.g-form {
  width: 460px;
  padding: 36px 30px 30px;
  margin: 30px auto 0;
  background-color: var(--card);
  border-radius: 30px;
  box-sizing: border-box;
}

input {
  &[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
    outline: 0;
    background-color: transparent;
    width: 300px;
    position: relative;
    &::-webkit-slider-runnable-track {
      height: 4px;
      background: var(--color-light);
    }
    &::-webkit-slider-container {
      height: 20px;
      overflow: hidden;
    }
    &::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background-color: var(--color);
      border: 1px solid transparent;
      margin-top: -6px;
      cursor: pointer;
      border-image: linear-gradient(to bottom, var(--color), var(--color)) 0
        fill / 6 16 6 0 / 0px 0px 0 2000px;
    }
  }
}

.g-skeleton {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  &.min {
    width: 180px;
    height: 32px;
    border-radius: 3px;
  }
  &.circle {
    width: 64px;
    height: 64px;
    border-radius: 30px;
  }
  background: linear-gradient(
    90deg,
    rgba(190, 190, 190, 0.05) 25%,
    rgba(129, 129, 129, 0.12) 37%,
    rgba(190, 190, 190, 0.05) 63%
  );
  background-size: 400% 100%;
  -webkit-animation: ant-skeleton-loading 1.4s ease infinite;
  animation: ant-skeleton-loading 1.4s ease infinite;
}

@keyframes ant-skeleton-loading {
  0% {
    background-position: 100% 50%;
  }

  to {
    background-position: 0 50%;
  }
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  100% {
    opacity: 0.2;
    -webkit-transform: none;
    transform: none;
  }
}